package net.cn_su.sharpeyes.dialog;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import net.cn_su.sharpeyes.R;


/**
 * 报警成功的dialog
 */
public class CallSuccessDialog extends BaseDialog {


    public CallSuccessDialog(Context context) {
        this(context, 0);


    }

    public CallSuccessDialog(Context context, int theme) {
        super(context, theme);
        View loadingView= LayoutInflater.from(context).inflate(R.layout.dialog_call_tip,null,false);
       ImageView imageView = (ImageView) loadingView.findViewById(R.id.iv_sate);
        TextView tv_state= (TextView) loadingView.findViewById(R.id.tv_state);

        imageView.setImageResource(R.drawable.icon_call_success);
        tv_state.setText(context.getResources().getString(R.string.call_police_success));
        setContentView(loadingView);

    }


}
